//
//  MYGImagesSelectedCell.swift
//  MYDoctor
//
//  Created by Denny on 2024/4/30.
//

import UIKit

class MYGImagesSelectedCell: UICollectionViewCell {

    @IBOutlet weak var boxBtn: UIButton!
    @IBOutlet weak var titleLB: UILabel!
    var tapBoxCompletion:((MYGPatientImages)->Void)?
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
        
    }
    var model = MYGPatientImages() {
        didSet {
            self.titleLB.text = model.name
            self.boxBtn.isSelected = model.selected
        }
    }

    @IBAction func tapBtn(_ sender: UIButton) {
        if let c = tapBoxCompletion {
            c(self.model)
        }
    }
}
